package com.coder.baseapp.injecter.module;

import android.app.Activity;

import com.coder.baseapp.injecter.scope.PerActivity;

import dagger.Module;
import dagger.Provides;

/**
 * Activity Module
 *
 * @Author: Tua.CoderGui
 * *
 * @Date: 2017/3/10
 * *
 * Copyright (c) 2017 All Rights Reserved.
 */
@Module
public class ActivityModule {

    private Activity mActivity;

    public ActivityModule(Activity mActivity) {
        this.mActivity = mActivity;
    }

    /**
     * 提供Activity
     *
     * @return
     */
    @Provides
    @PerActivity
    public Activity providesActivity() {
        return mActivity;
    }
}
